package com.yidu.t299.service.chr.impl;

import com.yidu.t299.dao.chr.LessonMapper;
import com.yidu.t299.domain.chr.Lesson;
import com.yidu.t299.service.chr.LessonBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author twj
 * @version 1.0.0
 */

@Service
public class LessonBizImpl implements LessonBiz {
    @Autowired
    private LessonMapper lessonMapper;

    /**
     * 查询所有课程信息
     *
     * @return 课程名称
     */
    @Override
    public List<Lesson> selectAll() {
        return lessonMapper.selectAll();
    }

    /**
     * 根据课程名称查询课程编号
     *
     * @param lessonName 课程名称
     * @return 课程编号
     */
    @Override
    public String selectByName(String lessonName) {
        return lessonMapper.selectByName(lessonName);
    }
}
